/* 
 * File:   StepDetector.h
 * Author: root
 *
 * Created on October 29, 2015, 8:54 AM
 */

#ifndef STEPDETECTOR_H
#define	STEPDETECTOR_H

#include "pedometer.h"
#include "StepData.h"

class StepDetector {
public:
    StepDetector();
    StepDetector(const StepDetector& orig);
    signed int update(const SensorData *paraSensor);
    
    StepDetector* getInstance();
    virtual ~StepDetector();
    void release();
    StepData* get();
    uint32 update(const RawData *paraRaw);
    uint32 update(uint32 time, double diff);
    bool checkVariance(const RawData *paraRawA, const RawData *paraRawB);
    
    int a;
    int b;
    double d;
    double e;
    Buffer<SensorData, 110> sensorBuffer;
    SensorData * ptrSenA;//452
    SensorData * ptrSenB;//453
    SensorData * j;
    SensorData * k;
    SensorData * l;
    StepData stepData;
    
private:
    static StepDetector* instance;
};

#endif	/* STEPDETECTOR_H */

